<div class="container">
  <form class="form-signin" method="post" [formGroup]="validateForm" (ngSubmit)="submitForm()">
    <h2 class="form-signin-heading" style="text-align: center">重置密码</h2>
    <p>
      <label for="username" class="sr-only">用户名</label>
      <input type="text" id="username" name="username" class="form-control" placeholder="用户名" required
             autofocus="" formControlName="username">
    </p>
    <p>
      <label for="username" class="sr-only">邮箱</label>
      <input type="text" id="email" name="email" class="form-control" placeholder="邮箱" required
             autofocus="" formControlName="email">
    </p>
    <p>
      <label for="password" class="sr-only">新密码</label>
      <input type="password" id="password" name="password" class="form-control" placeholder="新密码"
             required formControlName="password">
    </p>
    <p>
      <label for="confirm" class="sr-only">确认密码</label>
      <input type="password" id="confirm" name="confirm" class="form-control" placeholder="确认密码"
             required formControlName="confirm">
    </p>
    <button class="btn btn-lg btn-primary btn-block" type="submit"
            [disabled]="!validateForm.dirty || validateForm.invalid">重置
    </button>
  </form>
</div>
